#!/usr/bin/env python

# !-*-coding:utf-8 -*-

# !@Time     : 2021/11/11 19:22

# !@Author   : xul

# !@File     : testZorro.py

import numpy as np

np.random.seed(1)

A1 = np.random.randn(1, 3)
print(A1)

D1 = np.random.randn(A1.shape[0], A1.shape[1])

keep_prob = 0.5

D1 = D1 < keep_prob
print(D1)

A1 = 0.01
A1 = A1 * D1
A1 = A1 / keep_prob
print(A1)

